-- card: 7037 from stack: in.0 -- bmap block id: 0 -- flags: 4000 -- background id: 2612 -- name: StdFile -- part 1 (button) -- low flags: 00 -- high flags: A003 -- rect: left=82 top=302 right=324 bottom=182 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Install ----- HyperTalk script ----- on mouseUp if the optionkey is down then pass mouseup end if put (long name of this stack) into sourceStack delete first word of sourceStack delete first character of sourceStack delete last character of sourceStack put "Select a stack to copy this resource into." put filename("STAK") into fname if fname is empty then hide message window exit mouseup end if if sourcestack=fname then beep Answer "Get real. You can't install it in this stack" hide message window exit mouseup end if -- ModResCopy sourceStack,fname,"XCMD","StdFile" -- get the result if first char of it is "E" then put it into the message box beep answer "Attempt to install resource has failed." else beep answer "Resource installation successful" end if hide message window end mouseUp -- part contents for background part 13 ----- text ----- 10 -- part contents for background part 2 ----- text ----- StdFile -- part contents for background part 3 ----- text ----- Standard File Package positioning. Arrange for the Open and Save dialog boxes of applications to open at a specific folder before you “open” an application. The command will beep if an error is encountered, and take no further action. HyperCard seems to have the habit of resetting Standard File’s positioning in its idle handler, so it’s a good idea to call this XCMD just before you need it. Thanks to: Dewi Williams 2227 Juniper Court Boulder CO 80302 (303) 443 9038 Delphi: DEWI -- part contents for background part 10 ----- text ----- Syntax: StdFile("pathname") "pathname" is the path to the volume or folder where the Standard File Package’s Open and Save dialog boxes should be positioned. Example: StdFile("HD:Telecom:")